package com.quickcancellation.crm.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2023-03-12
 */
@TableName("od_t_orderdetail")
@ApiModel(value = "Orderdetail对象", description = "")
public class Orderdetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单号码")
    private String orderCode;

    @ApiModelProperty("产品编码")
    private String productCode;

    @ApiModelProperty("总数量")
    private Integer amount;

    @ApiModelProperty("付款金额")
    private BigDecimal amountMoney;

    @ApiModelProperty("是否是赠品 1-是 0-不是")
    private Integer isGift;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }
    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
    public BigDecimal getAmountMoney() {
        return amountMoney;
    }

    public void setAmountMoney(BigDecimal amountMoney) {
        this.amountMoney = amountMoney;
    }
    public Integer getIsGift() {
        return isGift;
    }

    public void setIsGift(Integer isGift) {
        this.isGift = isGift;
    }

    @Override
    public String toString() {
        return "Orderdetail{" +
            "id=" + id +
            ", orderCode=" + orderCode +
            ", productCode=" + productCode +
            ", amount=" + amount +
            ", amountMoney=" + amountMoney +
            ", isGift=" + isGift +
        "}";
    }
}
